import { graphql } from 'gatsby';
import React from 'react';
import Header from '../components/Header';
import Seo from '../components/SEO';
import { red } from '../styles/index.module.less';

export default function Home({ data }) {
  console.log('graphql query props.data :', data);
  return (
    <>
      <Seo title="首页" />
      <Header />
      <div className={red}>Hello world!</div>
    </>
  );
}

export const query = graphql`
  query MyQuery {
    site {
      siteMetadata {
        title
        description
        author
      }
    }
  }
`;
